<?php
header('Content-type: text/html;charset=utf-8');

session_start();

define('URL', 'http://localhost/radca2/');

if($_SERVER['SERVER_NAME'] == 'localhost')
{
    define('UPLOAD_PATH', $_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR.'radca2/views/images/');
}
 else 
{
    define('UPLOAD_PATH', $_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR.'views/images/');
}

require_once 'autoload.php';
require_once 'vendor/autoload.php';

$options = array('dbconfig' => 'config.ini',
                    'caching'=>array(
                        array(
                            'cache'=>true,
                            'page'=> DIRECTORY_SEPARATOR.'index/index.html.twig',
                            'cachetime'=>0
                            ),
                    ));

$router = new rooter();
$router->dispatch($options);

//$router->root_from_array($options);



